//=============================================================================
//
//   Copyright (C) 2020 All rights reserved.
//
//   Filename:		pore.rs
//
//   Author: Wang Zhecheng - wangzhecheng@yeah.net
//
//   Date: 2020-10-29 03:02
//
//   Last Editors: Wang Zhecheng - wangzhecheng@yeah.net
//
//   Last modified:	2020-10-29 23:42
//
//   Description:
//
//=============================================================================
use crate::component::{dof::Dof, node::Node};
use crate::dimension::DimType;
use crate::method::unknowns::UnknownType;
use std::marker::PhantomData;

#[derive(Debug)]
pub struct PoreUnknwon<DT: DimType> {
    _marker: PhantomData<DT>,
}

impl<DT: DimType> UnknownType<DT> for PoreUnknwon<DT> {
    fn set_nodal_dofs(&self, node: &mut Node<DT>) {
        node.append_dof("pore".to_string(), Dof::default());
    }
}
default_dt_marker!(PoreUnknwon<DT: DimType>);
